import { defineConfig } from 'umi';
import routes from './routes';

export default defineConfig({
  title: '智慧渔场水产养殖平台',
  history: {
    type: 'hash',
  },
  base: './',
  publicPath: './',
  hash: true,
  nodeModulesTransform: {
    type: 'none',
  },
  locale: {
    default: 'zh-CN',
    antd: false,
    title: false,
    baseNavigator: true,
    baseSeparator: '-',
  },
  routes: routes,
  fastRefresh: {},
  proxy: {
    '/back-api': {
      target: 'http://60.163.198.70:9989/',
      changeOrigin: true,
    },
    '/production_webservice': {
      target: 'http://81.68.98.124:8081/',
      changeOrigin: true,
    },
  },
});
